<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="org.apak.model.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Person search</title>
</head>
<body>
<%
	Customer[] customerList = (Customer[]) request.getAttribute("customerList");
%>
<form action="customerSearch?action=customerSearch" method="post">
	Name: <input type="text" name="name">
	<input type="submit" value="Search"/>
</form>
<%
	if(customerList != null)
		for(int i = 0; i < customerList.length; i++) {
%>
			<%= customerList[i].toString() %> <a href="./serviceRequest?customer=<%= customerList[i].getSubject_fk() %>&type=<%= customerList[i].getType() %>">Choose</a>
<%
		}
			
%>
</body>
</html>